home *** CD-ROM | disk | FTP | other *** search
- MAXDEFS=3
-
- ' ADVANCED.DEF - Demonstrates the most advanced features of PullDown v2.30
- ' Heavily commented source courtesy of Sam Horton, MicroDynamics
- ' Last update October 15, 1990
-
- DEF
- %Prompt Samples
-
-
- '012345678901234567890
- %Sample User-Defined Full Custom HELP Menu
- HI=7
-
- ' This one is particularly slick... and useful.
- ' An entire tutorial/online reference could be defined using
- ' this system with these commands!
-
- SCROLLBOX=SAMPLE.HLP,Sample Help
- ABORT
-
- ' Returns to menu instead of exiting to execute TEMPPULL.BAT
- ' Syntax is SCROLLBOX=HelpFile,HeaderString
- ' Where: HelpFile is a valid DOS file containing only ASCII
- ' HeaderString is a unique header found in the help file,
- ' and the help is ended by ### ... see PULL215.DOC
-
- '012345678901234567890
- %Build Your Own Batch (Variable Handling Demo)
- ' NOTE: This is fundamentally different from v2.01
- ' with all standard batch facilities available. See documentation.
- ' In v2.17, not v2.15, the REQUIRED and NOTREQUIRED keywords are
- ' present..........
- HI=6
- OKBOX=You will now interactively build a unique batch file.
- ?Enter Drive as D: [Enter]=Default
- ?Enter Full CD\Path.. command: [Enter]=Default
- REQUIRED
- ?Enter Program Execution Command (e.g. 123): [Required]
- OKBOX=You will now select the file to load on startup.
- LOADFILE=*.*
- +echo off
- +cls
- +%1
- +%2
- +%3 %4
- +PULLDWN
-
-
-
- '01234567890123456789012345
- %Setting up PullDown on a LAN
- HI=25
- ' You could literally have entire menu subsystems
- ' set up in separate directories this way!
- ' Commented out here so that it does not screw up during your
- ' demo run.
- OKBOX=Examine PULL220.DOC to see how this is done!
- ABORT
-
- ' The solo "-" on a %TitleLine defines an UNSELECTABLE bar.
- %-
-
- '012345678901234567890
- %Sample Dialogs
- ' For you REAL power users, here they are all in one.
- ' NOTREQUIRED is the default status of input boxes.
- HI=7
- YORN=Are you sure you want to use this option?
-
- REQUIRED
- ?Sample of Prompting for REQUIRED input:
-
- NOTREQUIRED
- ?Sample of Prompting for Input that can be NUL (Nothing):
-
- OKBOX=Now you will see the powerful file load dialog box.
-
- REQUIRED
- LOADFILE=*.*
-
- OKBOX=This option requires a password. [Esc]=Quit
- SCROLLBOX=SAMPLE.HLP,Red Herring
- PASS=YouCannotKnowThis
-
- ABORT
-
- ' Password failures ABORT execution. Since you did not know
- ' that password, you never got to this option.
- ' Used ABORT as this is only a demo file.
-
- '012345678901234567890
- %Sample Dialogs 2
- HI=15
- REQUIRED
- ?Sample of Prompting for REQUIRED input 1/2:
- ?Sample of Prompting for Required Input #2:
-
- OKBOX=You may wish to use this method to prevent any NUL inputs.
- ABORT
- ' As you can see, REQUIRED sticks until toggled OFF with NOTREQUIRED
- %-
- '012345678901
- %Automatic Execution of Commands
- HI=11
- @AUTOEX.DEF
-
- %-
-
- '012345678901234567890
- %About PullDown...
- HI=0
- SCROLLBOX=SAMPLE.HLP,About PullDown...
- ABORT
-
- DEF
- % Nest Sample
- %Return to Main Menu
- OKBOX=You could have done this by mouse clicking on "PullDown"
- @PULLDWN.DEF
-
- ' An @ command looks either 1) The directory PULLDWN1.EXE is
- ' started from, OR 2) The path defined by SET PULLDWN=PathName
- ' If not found, a dialog is popped telling you so, and you are
- ' prompted for a valid definition file.
-
- %Circle back to this menu
- @ADVANCED.DEF
-
- %Enter WINDOWS menu
- @WINDOWS.DEF
-
- DEF
- %Exit
- %Return to the Main Menu
-
- ' NOTICE that this is *not* exactly the same string as above ^^
- ' if it was, then the FIRST occurence would be executed. This
- ' small limitation will disappear upon release of the compiler.
-
- OKBOX=You could have done this by mouse clicking on "PullDown"
- @PULLDWN.DEF
-
- '012345678901234567890
- %Exit to DOS
- HI=1
- YORN=Are you sure?
- OKBOX=Thank you for evaluating PullDown! Enjoy!
- +echo off
- +cls
- +echo Type PULLDWN [ENTER] to return to PullDown.
- +echo.
-
- ' End of ADVANCED.DEF file.
- ' SLH 10/90
- ' Please consider supporting shareware! Thank you.
-
-